import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
// import 'package:surfaceim/common/values/colors.dart';
// import 'package:surfaceim/common/widgets/app.dart';
import 'package:surfaceim/pages/application/controller.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

class UserIndex extends StatelessWidget {
  ApplicationController applicationController =
      Get.find<ApplicationController>();

  // AppBar _buildAppBar() {
  //   return appBar(
  //       title: Text(
  //         "我的",
  //         style: TextStyle(
  //           color: AppColors.primaryText,
  //           fontFamily: 'Montserrat',
  //           fontSize: 36.sp,
  //           fontWeight: FontWeight.w600,
  //         ),
  //       ),
  //       leading: Container(),
  //       // leadWidth: ScreenUtil().setWidth(170),
  //       isBack: false,
  //       color: Color.fromRGBO(249, 250, 252, 1));
  // }

  @override
  Widget build(BuildContext context) {
    return SingleChildScrollView(
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          // 头像部分
          Container(
            margin: EdgeInsets.only(left: 25.w),
            width: 1.sw,
            height: 194.h,
            child: Row(
              // mainAxisAlignment: MainAxisAlignment.spaceBetween,
              // crossAxisAlignment: CrossAxisAlignment.center,
              children: [
                Container(
                  margin: EdgeInsets.only(left: 30.w),
                  decoration: BoxDecoration(
                    image: DecorationImage(
                        fit: BoxFit.cover,
                        image: AssetImage(
                          "assets/images/meinv.jpeg",
                        )),
                    borderRadius: BorderRadius.all(Radius.circular(120.h)),
                    boxShadow: [
                      BoxShadow(
                          color: Colors.black12,
                          // offset: Offset(1.0, 1.0), //阴影y轴偏移量
                          blurRadius: 10, //阴影模糊程度
                          spreadRadius: 1 //阴影扩散程度
                          )
                    ],
                  ),
                  width: 140.w,
                  height: 140.w,
                ),
                Container(
                  margin: EdgeInsets.only(left: 30.w),
                  child: Column(
                    mainAxisAlignment: MainAxisAlignment.center,
                    crossAxisAlignment: CrossAxisAlignment.start,
                    children: [
                      Text(
                        "Bill Stokes",
                        style: TextStyle(
                            fontSize: 36.sp, fontWeight: FontWeight.bold),
                      ),
                      Container(
                        height: 10.h,
                      ),
                      Container(
                        padding: EdgeInsets.only(
                            left: 30.w, right: 30.w, top: 10.h, bottom: 10.h),
                        child: Text(
                          "预览和编辑资料",
                          style: TextStyle(
                              color: Color.fromRGBO(148, 161, 189, 1)),
                        ),
                        decoration: BoxDecoration(
                          borderRadius: BorderRadius.all(Radius.circular(10.w)),
                          color: Color.fromRGBO(231, 238, 248, 1),
                        ),
                      )
                    ],
                  ),
                )
              ],
            ),
          ),
          Container(
            height: 47.h,
          ),
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceAround,
            children: [
              Container(
                // width: 1.sw/3,
                // height: 1.sw/3,
                child: Column(
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: [
                    Text("41",
                        style: TextStyle(
                          fontWeight: FontWeight.bold,
                          fontSize: 36.sp,
                          color: Color.fromRGBO(51, 51, 51, 1),
                        )),
                    Container(height: 2.h),
                    Text("最近访客",
                        style: TextStyle(
                          // fontWeight: FontWeight.bold,
                          fontSize: 26.sp,
                          color: Color.fromRGBO(162, 162, 163, 1),
                        ))
                  ],
                ),
              ),
              Container(
                // width: 1.sw/3,
                // height: 1.sw/3,
                child: Column(
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: [
                    Text("41",
                        style: TextStyle(
                          fontWeight: FontWeight.bold,
                          fontSize: 36.sp,
                          color: Color.fromRGBO(51, 51, 51, 1),
                        )),
                    Container(height: 2.h),
                    Text("我的喜欢",
                        style: TextStyle(
                          // fontWeight: FontWeight.bold,
                          fontSize: 26.sp,
                          color: Color.fromRGBO(162, 162, 163, 1),
                        ))
                  ],
                ),
              ),
              Container(
                // width: 1.sw/3,
                // height: 1.sw/3,
                child: Column(
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: [
                    Text("41",
                        style: TextStyle(
                          fontWeight: FontWeight.bold,
                          fontSize: 36.sp,
                          color: Color.fromRGBO(51, 51, 51, 1),
                        )),
                    Container(height: 2.h),
                    Text("喜欢我的",
                        style: TextStyle(
                          // fontWeight: FontWeight.bold,
                          fontSize: 26.sp,
                          color: Color.fromRGBO(162, 162, 163, 1),
                        ))
                  ],
                ),
              )
            ],
          ),
          Container(
            width: 1.sw,
            margin: EdgeInsets.only(top: 60.h),
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              crossAxisAlignment: CrossAxisAlignment.center,
              children: [
                Container(
                  width: 670.w,
                  decoration: BoxDecoration(
                    borderRadius: BorderRadius.only(
                        topLeft: Radius.circular(20.h),
                        topRight: Radius.circular(20.h)),
                    color: Colors.white,
                  ),
                  padding: EdgeInsets.only(
                      top: 39.h, bottom: 39.h, left: 35.w, right: 35.w),
                  child: Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Row(
                        // crossAxisAlignment: CrossAxisAlignment.start,
                        children: [
                          Text("为"),
                          Container(
                            width: 30.w,
                          ),
                          Text(
                            "帮助中心",
                            style: TextStyle(
                                fontSize: 30.sp, fontWeight: FontWeight.bold),
                          )
                        ],
                      ),
                      Text("位")
                    ],
                  ),
                ),
                Container(
                  width: 670.w,
                  color: Colors.white,
                  padding: EdgeInsets.only(
                      top: 39.h, bottom: 39.h, left: 35.w, right: 35.w),
                  child: Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Row(
                        // crossAxisAlignment: CrossAxisAlignment.start,
                        children: [
                          Text("为"),
                          Container(
                            width: 30.w,
                          ),
                          Text(
                            "问题反馈",
                            style: TextStyle(
                                fontSize: 30.sp, fontWeight: FontWeight.bold),
                          )
                        ],
                      ),
                      Text("位")
                    ],
                  ),
                ),
                Container(
                  width: 670.w,
                  color: Colors.white,
                  padding: EdgeInsets.only(
                      top: 39.h, bottom: 39.h, left: 35.w, right: 35.w),
                  child: Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Row(
                        // crossAxisAlignment: CrossAxisAlignment.start,
                        children: [
                          Text("为"),
                          Container(
                            width: 30.w,
                          ),
                          Text(
                            "商务合作",
                            style: TextStyle(
                                fontSize: 30.sp, fontWeight: FontWeight.bold),
                          )
                        ],
                      ),
                      Text("位")
                    ],
                  ),
                ),
                Container(
                  width: 670.w,
                  color: Colors.white,
                  padding: EdgeInsets.only(
                      top: 39.h, bottom: 39.h, left: 35.w, right: 35.w),
                  child: Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Row(
                        // crossAxisAlignment: CrossAxisAlignment.start,
                        children: [
                          Text("为"),
                          Container(
                            width: 30.w,
                          ),
                          Text(
                            "关于我们",
                            style: TextStyle(
                                fontSize: 30.sp, fontWeight: FontWeight.bold),
                          )
                        ],
                      ),
                      Text("位")
                    ],
                  ),
                ),
                Container(
                  width: 670.w,
                  decoration: BoxDecoration(
                    borderRadius: BorderRadius.only(
                        bottomLeft: Radius.circular(20.h),
                        bottomRight: Radius.circular(20.h)),
                    color: Colors.white,
                  ),
                  padding: EdgeInsets.only(
                      top: 39.h, bottom: 39.h, left: 35.w, right: 35.w),
                  child: Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Row(
                        // crossAxisAlignment: CrossAxisAlignment.start,
                        children: [
                          Text("为"),
                          Container(
                            width: 30.w,
                          ),
                          Text(
                            "设置",
                            style: TextStyle(
                                fontSize: 30.sp, fontWeight: FontWeight.bold),
                          )
                        ],
                      ),
                      Text("位")
                    ],
                  ),
                )
              ],
            ),
          )
        ],
      ),
    );
  }
}
